<?php

$ipServerDB = "127.0.0.1";
$userNameDB = "root";
$passwordDB = "";

function Conectar($query)
{
    $conexion = mysql_connect($ipServerDB, $userNameDB, $passwordDB);
    mysql_select_db("SerComunitario", $conexion);
    $resul = mysql_query($query, $conexion) or die(mysql_error());
//    $resul = mysql_query($query, $conexion) or die('Error #10');
    
    mysql_close($conexion);
    return $resul;
}
?>
